import request from '@/utils/request'

// 查询动物处理列表
export function listAnimalHanding(query) {
  return request({
    url: '/handing/animalHanding/list',
    method: 'get',
    params: query
  })
}

// 查询动物处理详细
export function getAnimalHanding(animalHandingId) {
  return request({
    url: '/handing/animalHanding/' + animalHandingId,
    method: 'get'
  })
}

// 新增动物处理
export function addAnimalHanding(data) {
  return request({
    url: '/handing/animalHanding',
    method: 'post',
    data: data
  })
}

// 修改动物处理
export function updateAnimalHanding(data) {
  return request({
    url: '/handing/animalHanding',
    method: 'put',
    data: data
  })
}

// 删除动物处理
export function delAnimalHanding(animalHandingId) {
  return request({
    url: '/handing/animalHanding/' + animalHandingId,
    method: 'delete'
  })
  
}

// 已处理
export function chuli(animalHandingId) {
  return request({
    url: '/handing/animalHanding/' + animalHandingId,
    method: 'post'
    // alert:"操作成功"
  })
}
